<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%><%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<tiles:insertDefinition name="layout">
	<tiles:putAttribute name="head">
		<script type="text/javascript">
			$(function() {
				$("form").Validform({
					ajaxPost : true,
					customReset : true,
					tiptype : ValidUtils.siblingTip,
					callback : function(data) {
						helper.showMsg(data, {
							okHandler : function() {
								art.dialog.data("success", true);
								art.dialog.close();
							}
						});
					}
				});
			});
		</script>
	</tiles:putAttribute>
	<tiles:putAttribute name="mainBody">
		<form class="form-horizontal" action="doCreateCourse" method="post">
			<fieldset>
				<legend>创建课程</legend>
				<div class="control-group">
					<div class="control-label">课程名称</div>
					<div class="controls">
						<input type="text" name="name" value="特惠外教一对一集训班" />
					</div>
				</div>
				<div class="control-group">
					<div class="control-label">有效时间</div>
					<div class="controls">
						<div class="form-inline">
							<input type="text" name="name" class="input-small" /> ~ <input type="text" name="name" class="input-small" />
							<label class="checkbox">
								始终有效 <input type="checkbox" name="always" value="always" />
							</label>
						</div>
					</div>
				</div>
				<div class="control-group">
					<div class="control-label">
						<a href="listTemplate.jsp">内容</a>
						<div class="btn-group">
							<button class="btn dropdown-toggle" data-toggle="dropdown">
								<span class="caret"></span>
							</button>
							<ul class="dropdown-menu" id="term_select_menu">
								<li><a href="javascript:void(0)">雅思无限时一个月</a></li>
								<li><a href="javascript:void(0)">雅思无限时两个月</a></li>
								<li><a href="javascript:void(0)">贵宾卡</a></li>
								<li><a href="javascript:void(0)">赠卡</a></li>
								<li><a href="javascript:void(0)">沙龙自由人</a></li>
								<li><a href="javascript:void(0)">少儿</a></li>
								<li><a href="javascript:void(0)">名师集训班</a></li>
								<li><a href="javascript:void(0)">VIP</a></li>
							</ul>
						</div>
					</div>
					<div class="controls">
						<table class="table">
							<thead>
								<tr>
									<th style="width: 5em">课程模版</th>
									<th style="width: 5em">课程形式</th>
									<th style="width: 5em">计费方式</th>
									<th style="width: 20em">时长/次数限制</th>
									<th>课程内容</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td><div class="input-prepend input-append">
											<div class="btn-group">
												<button class="btn dropdown-toggle" data-toggle="dropdown">
													<span class="caret"></span>
												</button>
												<ul class="dropdown-menu" id="term_select_menu">
													<li><a href="javascript:void(0)">雅思无限时一个月</a></li>
													<li><a href="javascript:void(0)">雅思无限时两个月</a></li>
													<li><a href="javascript:void(0)">贵宾卡</a></li>
													<li><a href="javascript:void(0)">赠卡</a></li>
													<li><a href="javascript:void(0)">沙龙自由人</a></li>
													<li><a href="javascript:void(0)">少儿</a></li>
													<li><a href="javascript:void(0)">名师集训班</a></li>
													<li><a href="javascript:void(0)">VIP</a></li>
												</ul>
											</div>
											<input name="template" class="input-medium" type="text" value="一对一钻石课程" />
											<button class="btn">
												<i class="icon icon-file"></i>
											</button>
										</div></td>
									<td><select class="input-small">
											<option>普通</option>
											<option selected="selected">VIP</option>
									</select></td>
									<td><select class="input-small">
											<option>计时</option>
											<option selected="selected">计次</option>
											<option>固定班</option>
									</select></td>
									<td>
										<div class="input-append">
											<input name="template" class="input-mini" type="text" value="12"> <span class="add-on">次</span>
										</div>
										<div class="input-append">
											<input name="template" class="input-mini" type="text" value="30"> <span class="add-on">天</span>
										</div>
									</td>
									<td>
										<div class="form-inline">
											<label class="checkbox">
												<input type="checkbox" />雅思
											</label>
											<label class="checkbox">
												<input type="checkbox" />托福
											</label>
											<label class="checkbox">
												<input type="checkbox" />模拟面试
											</label>
											<label class="checkbox">
												<input type="checkbox" />少儿
											</label>
											<a href="listSubject.jsp">变更</a>
										</div>
									</td>
								</tr>
								<tr>
									<td><div class="input-prepend input-append">
											<div class="btn-group">
												<button class="btn dropdown-toggle" data-toggle="dropdown">
													<span class="caret"></span>
												</button>
												<ul class="dropdown-menu" id="term_select_menu">
													<li><a href="javascript:void(0)">雅思无限时一个月</a></li>
													<li><a href="javascript:void(0)">雅思无限时两个月</a></li>
													<li><a href="javascript:void(0)">贵宾卡</a></li>
													<li><a href="javascript:void(0)">赠卡</a></li>
													<li><a href="javascript:void(0)">沙龙自由人</a></li>
													<li><a href="javascript:void(0)">少儿</a></li>
													<li><a href="javascript:void(0)">名师集训班</a></li>
													<li><a href="javascript:void(0)">VIP</a></li>
												</ul>
											</div>
											<input name="template" class="input-medium" type="text" value="沙龙外教封闭集训" />
											<button class="btn">
												<i class="icon icon-file"></i>
											</button>
										</div></td>
									<td><select class="input-small">
											<option selected="selected">普通</option>
											<option>VIP</option>
									</select></td>
									<td><select class="input-small">
											<option selected="selected">计时</option>
											<option>计次</option>
											<option>固定班</option>
									</select></td>
									<td>
										<div class="input-append">
											<input name="template" class="input-mini" type="text" value="20"> <span class="add-on">天</span>
										</div>
									</td>
									<td>
										<div class="form-inline">
											<label class="checkbox">
												<input type="checkbox" />雅思
											</label>
											<label class="checkbox">
												<input type="checkbox" />托福
											</label>
											<label class="checkbox">
												<input type="checkbox" />模拟面试
											</label>
											<label class="checkbox">
												<input type="checkbox" />少儿
											</label>
											<a href="listSubject.jsp">变更</a>
										</div>
									</td>
								</tr>
								<tr>
									<td><div class="input-prepend input-append">
											<div class="btn-group">
												<button class="btn dropdown-toggle" data-toggle="dropdown">
													<span class="caret"></span>
												</button>
												<ul class="dropdown-menu" id="term_select_menu">
													<li><a href="javascript:void(0)">雅思无限时一个月</a></li>
													<li><a href="javascript:void(0)">雅思无限时两个月</a></li>
													<li><a href="javascript:void(0)">贵宾卡</a></li>
													<li><a href="javascript:void(0)">赠卡</a></li>
													<li><a href="javascript:void(0)">沙龙自由人</a></li>
													<li><a href="javascript:void(0)">少儿</a></li>
													<li><a href="javascript:void(0)">名师集训班</a></li>
													<li><a href="javascript:void(0)">VIP</a></li>
												</ul>
											</div>
											<input name="template" class="input-medium" type="text" value="赠卡" />
											<button class="btn">
												<i class="icon icon-file"></i>
											</button>
										</div></td>
									<td><select class="input-small">
											<option>普通</option>
											<option>VIP</option>
									</select></td>
									<td><select class="input-small">
											<option>计时</option>
											<option selected="selected">计次</option>
											<option>固定班</option>
									</select></td>
									<td>
										<div class="input-append">
											<input name="template" class="input-mini" type="text" value="12"> <span class="add-on">次</span>
										</div>
										<div class="input-append">
											<input name="template" class="input-mini" type="text" value="12"> <span class="add-on">天</span>
										</div>
									</td>
									<td>
										<div class="form-inline">
											<label class="checkbox">
												<input type="checkbox" />雅思
											</label>
											<label class="checkbox">
												<input type="checkbox" />托福
											</label>
											<label class="checkbox">
												<input type="checkbox" />模拟面试
											</label>
											<label class="checkbox">
												<input type="checkbox" />少儿
											</label>
											<a href="listSubject.jsp">变更</a>
										</div>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="control-group">
					<div class="control-label">说明</div>
					<div class="controls">
						<textarea name="title" cols="100" rows="5">一对一外教教学更具针对性，专属指导老师答疑解惑，20天无限时课程丰富你和假期</textarea>
					</div>
				</div>
			</fieldset>
			<div class="control-group">
				<div class="controls">
					<button type="submit" class="btn btn-primary">提交</button>
				</div>
			</div>
		</form>
	</tiles:putAttribute>
</tiles:insertDefinition>